#pragma once

#include "ImageDatatype.h"
#include "ImageFormat.h"


namespace Renderer
{
	class TextureUtility
	{
	public:
		//static ImageDatatype ImagingPixelFormatToDatatype(ImagingPixelFormat pixelFormat)
		//static ImageFormat ImagingPixelFormatToImageFormat(ImagingPixelFormat pixelFormat)
		//static bool Supported(ImagingPixelFormat& pixelFormat)


		static bool IsPowerOfTwo(unsigned i);

		static int RequiredSizeInBytes(
			int width,
			int height,
			ImageFormat& format,
			ImageDatatype& dataType,
			int rowAlignment);


		static int NumberOfChannels(ImageFormat format);


		static int SizeInBytes(ImageDatatype dataType);

	};
}